# -*- coding: utf-8 -*-
# Description:
# Created: dingwenjing 2022/11/29
import os


def get_path(static_name):
    cur_path = os.path.abspath(os.path.dirname(__file__))
    root_path = cur_path[:cur_path.find("app") + len("app")]
    # print("root",root_path)
    return os.path.abspath(root_path + '/train/' + static_name)
def get_group_path(static_name):
    cur_path = os.path.abspath(os.path.dirname(__file__))
    root_path = cur_path[:cur_path.find("app") + len("app")]
    return os.path.abspath(root_path + '/train/group_file/'+ static_name)
def get_nogroup_path(static_name):
    cur_path = os.path.abspath(os.path.dirname(__file__))
    root_path = cur_path[:cur_path.find("app") + len("app")]

    return os.path.abspath(root_path + '/train/no_group_file/'+ static_name)